package city.spring.repository;

import city.spring.domain.entity.UnitmeasurementEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * 存储库：计量单位
 *
 * @author 谢金婷
 * @date 2020-05-06 09:29:54
 */
@Repository
public interface UnitmeasurementRepository extends BaseMapper<UnitmeasurementEntity> {

    /**
     * 查询单位，按创建时间排序
     *
     * @return
     */
    List<UnitmeasurementEntity> getUnitmeasurementByOrder();
}